package com.xinou.daily_report.enumerate;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;

import java.math.BigDecimal;

/**
 * @author lizhongyuan
 */
@Getter
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DynamicEnum {
    /**
     * 待缴水果基金
     */
    STATE_0_FRUIT("待缴水果基金"),

    /**
     * 今日奖励水果基金
     */
    TODAY_ADD_Fruit("今日奖励水果基金"),

    /**
     * 今日奖励积分
     */
    TODAY_ADD_INTEGRAL("今日奖励积分"),

    /**
     * 今日扣除积分
     */
    TODAY_SUB_INTEGRAL("今日扣除积分");

    private final Integer key;

    private BigDecimal value;

    private final String desc;

    DynamicEnum(String desc) {
        key = ordinal();
        this.desc = desc;
    }

    public void setValue(BigDecimal value) {
        this.value = value;
    }

}
